package dmp.hbase.util;

import java.io.IOException;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.HBaseConfiguration;
import org.apache.hadoop.hbase.client.HTable;

public class ConnectionUtil {

	public static Configuration getConfiguration() {
		Configuration config = HBaseConfiguration.create();
		return config;
	}

	public static HTable getTable() {
		try {
			return new HTable(getConfiguration(), "test_hfile");
		} catch (IOException e) {
			e.printStackTrace();
			return null;
		}
	}

}
